package com.poker.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName UserVictory用户比赛情况表
 * @Description TODO
 * @Author duyuanyuan
 * @Date 2019/3/18 13:41
 * @Version 1.0
 **/
@Entity
@Data
@Table(name = "user_game")
public class UserGame implements Serializable {

    private static final long serialVersionUID = -7682628610991449059L;
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid",strategy = "uuid")
    private String id;//主键id

    @Column(name = "activity_id")
    private String activityId;//关联活动id

    @Column(name = "user_id")
    private String userId;//关联用户id

    @Column(name = "what_scene")
    private String whatScene;//第几场

    @Column(name = "game_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gameDate;//比赛时间

    @Column(name = "game_status")
    private Integer gameStatus;//0 胜利 1失败

    @Column(name = "integral")
    private Integer integral;//增加或者扣减积分数量

    @Column(name = "creat_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatDate;//创建时间





}
